export function getCode() {
  return new Promise((resolve, reject) => {
    wx.login({
      success: (res) => {
        console.log('小程序登录', res.code)
        resolve(res.code);
      },
      fail: reject,
    });
  });
}
